package com.itheima.exercise.animal.birds;

import com.itheima.exercise.animal.Animal;

public class Birds extends Animal {
    //鸟类都有的颜色和叫声
    private String color;
    private String bark;

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getBark() {
        return bark;
    }

    public void setBark(String bark) {
        this.bark = bark;
    }

    public Birds() {
    }

    public Birds(String color, String bark) {
        this.color = color;
        this.bark = bark;
    }
    //鸟类的飞翔方法
    public void fly(){
        System.out.println("鸟都会飞");
    }
}
